﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GestureLib;

namespace GesturePad
{
    class SwitchCaseTextAction : IGestureAction
    {
        public delegate void LetterCaseChangedCallback(WriteEditorTextAction.LetterCase letterCase);

        #region IGestureAction Members

        public WriteEditorTextAction.LetterCase Case { get; set; }
        public LetterCaseChangedCallback LetterCaseChanged { get; set; }

        public void Execute()
        {
            if (LetterCaseChanged != null)
            {
                LetterCaseChanged(Case);
            }
        }

        #endregion

        #region INamed Members

        public string Name { get; set; }

        #endregion
    }
}
